package com.bbd.miku.web.model.result;

/**
 * ajax 接口返回结果类型。
 * 所有的ajax接口必须返回此类型。
 * Created by zhao yuan on 2016/9/30.
 */
public class MikuBaseResult<T> {

    /** 此次接口调用是否成功 */
    private boolean success;

    /** 状态码 */
    private String code;

    /** 状态详细描述 */
    private String msg;

    /** 接口返回的数据 */
    private T data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
